package com.white.framework.flow.service.impl;

import com.white.framework.flow.service.ThereIsNoTransactionControlNoResultService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Service
public class ThereIsNoTransactionControlNoResultServiceImpl implements ThereIsNoTransactionControlNoResultService {

    /**
     * 没有事务控制的方法体
     * @param runnable
     */
    @Override
    @Transactional(propagation = Propagation.NOT_SUPPORTED)
    public void run(Runnable runnable) {
        runnable.run();
    }
}
